package io.renren.entity;

import java.util.HashMap;

public class R extends HashMap<String, Object> {

    public static R ok() { return new R().put("code", 0); }

    public static R error(String msg) { return new R().put("code", 1).put("msg", msg); }

    public R put(String key, Object value) {
        super.put(key, value);
        return this;
    }
}
